<?php

	require_once 'adodb/toexport.inc.php';
	require_once 'adodb/adodb.inc.php';
	require_once 'DB.php';
	require_once 'data.php';
	require_once('TextToImage.inc.php');
	global $db;


	$db = ADONewConnection ( DATA_BASE );
	//$db->debug = true;
	$db->Connect ( DB_HOST, DB_USER, DB_PASS, DB_NAME );
	$GLOBALS['ADODB_FETCH_MODE'] = ADODB_FETCH_ASSOC;
	
	/*global $db_conn;
	$db_conn 		= DB::factory ( 'mysql' ); 
	$result_conn 	= $db_conn->connect ( DB::parseDSN ( 'mysql://' . DB_USER . ':' . DB_PASS . '@' . DB_HOST . '/' . DB_NAME ) );
	if (DB::isError ( $result_conn )) {
		die ( $result_conn->getDebugInfo () );
	}*/
	require_once 'template_functions.php';
	 __autoload (dirname(__FILE__).DIRECTORY_SEPARATOR.'class' );
	 
?>